Skip to content

add cache_dir and local_dir parameters #864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

BBC-Esq
Copy link
Contributor

@BBC-Esq BBC-Esq commented Dec 31, 2024

This pull request is related (but not identical) to #863

It builds upon the other pull request adding a local_dir parameter, allowing the download of the repository NOT IN BLOB form:

Summary

Source Parameters Behavior File Structure Hash Verification
"huggingface" (default) Downloads to ~/.cache/huggingface Cache structure Yes
"huggingface" cache_dir="path" Downloads to specified path Cache structure Yes
"huggingface" local_dir="path" Downloads to specified path Original repo structure No
"local" (default) Downloads to current directory Cache structure Yes
"local" cache_dir="path" Downloads to specified path Cache structure Yes
"local" local_dir="path" Downloads to specified path Original repo structure No
"custom" custom_path="path" Uses existing files As provided Yes
"custom" custom_path + cache_dir cache_dir ignored As provided Yes
"custom" custom_path + local_dir local_dir ignored As provided Yes

@github-actions github-actions bot changed the base branch from main to dev December 31, 2024 03:01
@fumiama fumiama mentioned this pull request Jan 7, 2025
@BBC-Esq
Copy link
Contributor Author

BBC-Esq commented Jan 19, 2025

Can you resolve this please? I'm not an expert programmer and this is only a hobby of mine, but this pull request is superior to the one that you accepted. Thanks.

@BBC-Esq BBC-Esq closed this Jan 28, 2025
@BBC-Esq BBC-Esq deleted the add-cache_dir-and-local_dir-options branch January 28, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant